problems on joint density function